|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectraar.register.RAReal
public class RAReal
Class Real represents a real (double precision number) in the RAAR environment.
| Field Summary | |
|---|---|
static double |
TOLERANCE
ABSOLUTE tolerance value for equals, largerEquals, smallerEquals, etcetera. |
| Constructor Summary | |
|---|---|
RAReal()
Construct a real with NIL as default value. |
|
RAReal(double value)
Construct a real with specified value. |
|
| Method Summary | |
|---|---|
boolean |
canContain(RAAllowed other)
|
java.lang.Object |
clone()
|
double |
dValue()
Return the real value stored in this object. |
boolean |
equals(RAEqualityComparable otherMathObject)
Returns true if this real is equal to the parameter, given the tolerance in the config file. |
int |
getType()
Return the datatype (RADataType.RA_REAL) |
boolean |
larger(RAFullComparable r)
Returns true if this real is larger than r, given the specific tolerance in the config file. |
boolean |
largerEquals(RAFullComparable r)
Returns true if this real is larger than r or equals, given the specific tolerance in the config file. |
RAAllowed |
makeClone()
|
boolean |
smaller(RAFullComparable r)
Returns true if this real is smaller than r, given the specific tolerance in the config file. |
boolean |
smallerEquals(RAFullComparable r)
Returns true if this real is smaller than r or equals r, given the specific tolerance in the config file. |
java.lang.String |
toString()
String representation of this real. |
RADataType |
value()
Return this object (for compatibility with RADataType). |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static double TOLERANCE
| Constructor Detail |
|---|
public RAReal()
public RAReal(double value)
the - value| Method Detail |
|---|
public java.lang.Object clone()
clone in interface RADataTypeclone in class java.lang.Object
public RADataType value()
throws RAException
value in interface RAAssignablevalue in interface RAMathObjectRAException
public RAAllowed makeClone()
throws RAException
makeClone in interface RAAllowedRAException
public double dValue()
throws RAException
RAExceptionpublic java.lang.String toString()
toString in class java.lang.Object
public boolean equals(RAEqualityComparable otherMathObject)
throws RAException
equals in interface RAEqualityComparablea - real...
RAExceptionpublic boolean canContain(RAAllowed other)
canContain in interface RAAllowed
public boolean larger(RAFullComparable r)
throws RAException
larger in interface RAFullComparabler - Another real bites the dust
RAException
public boolean smaller(RAFullComparable r)
throws RAException
smaller in interface RAFullComparabler - Another real bites the dust
RAException
public boolean largerEquals(RAFullComparable r)
throws RAException
largerEquals in interface RAFullComparabler - Another real bites the dust
RAException
public boolean smallerEquals(RAFullComparable r)
throws RAException
smallerEquals in interface RAFullComparabler - Another real bites the dust
RAExceptionpublic int getType()
getType in interface RADataType
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||